package com.siteseat.common.misc;

/**
 *
 */
public class ClassHelper {

  /**
   * @param clazz
   * @return
   */
  public static <T> String getClassTitle( Class<T> clazz ) {
    String name = clazz.getName();
    int dotPos = name.lastIndexOf( '.' );
    if( dotPos > 0 ) {
      return name.substring( dotPos );
    }
    return name;
  }

}
